package com.z1.core.http;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@JsonIgnoreProperties(ignoreUnknown=true)
@JsonInclude(Include.NON_NULL)
public class RestResult implements Serializable {

	private static final long serialVersionUID = -1581392669077986558L;
	
	//状态码
	private int status = 0;
	//结果
	private String result = null;
	//信息
	private String msg = null;
	
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public RestResult status(int status) {
		this.setStatus(status);
		return this;
	}
	
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public RestResult result(String result) {
		this.setResult(result);
		return this;
	}
	
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public RestResult msg(String msg) {
		this.setMsg(msg);
		return this;
	}

}
